home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 4 / QRZ Ham Radio Callsign Database - Volume 4.iso / files / packet / fin_ip / makefile < prev    next >
Makefile  |  1992-06-14  |  961b  |  31 lines

  1. # This Makefile creates an updated host-file for Finnish
  2. # Radio Amateur TCP/IP network.
  3. #
  4. # Created by Markku Toijala (mto@nic.funet.fi) June 13th, 1990.
  5. # Modified by Matti Aarnio (mea@nic.funet.fi) Jan 5th, 1991
  6. #
  7. PARTS = header oh0 oh1 oh2 oh3 oh4 oh5 oh6 oh7 oh8 oh9
  8.  
  9. all:    domain.oh hosts.oh
  10.  
  11. domain.oh:    $(PARTS) Makefile
  12.     /bin/rm -f domain.oh
  13.     /bin/rm -f *~
  14.     /bin/cat $(PARTS) | /usr/ucb/expand > domain.oh
  15.     -/etc/chown mea domain.oh
  16.     /bin/chgrp ftp domain.oh
  17.     /bin/chmod 664 domain.oh
  18.     Mail -s "Fresh OH-IP domain data" ham-oh-ip-numbers <domain.oh
  19.  
  20. hosts.oh:    domain.oh Makefile
  21.     /bin/rm -f hosts.oh
  22.     /bin/rm -f *~
  23.     /bin/cat domain.oh |                        \
  24.          /p/bin/perl -n -a -e                    \
  25.             'if (/^[;]/) {printf "#%s",substr($$_,1);} elsif ($$F[2] eq "A") { printf "%s\t%s\t%s.ampr.org\n",$$F[3],$$F[0],$$F[0];}'    \
  26.             > hosts.oh
  27.     -/etc/chown mea hosts.oh
  28.     /bin/chgrp ftp hosts.oh
  29.     /bin/chmod 664 hosts.oh
  30.     Mail -s "Fresh OH-IP number list" ham-oh-ip-numbers <hosts.oh
  31.